package dev.ece.util.tools.transformations;

import dev.ece.util.lib.Matrix4f;
import dev.ece.util.lib.Vector3f;

/**
 * @author 潜行的青衣
 * @see
 */
public class Translation implements Transformation {

	private Vector3f position;
	
	public Translation() {
		this(new Vector3f());
	}
	
	public Translation(Vector3f position) {
		this.position = position;
	}
	
	/* (non-Javadoc)
	 * @see dev.ece.util.tools.transformers.Transformer#transform()
	 */
	@Override
	public void transform(Matrix4f matrix) {
		matrix.translate(position);
	}

	public Vector3f getPosition() {
		return position;
	}

}
